<?php
class Form extends Container implements DefaultValueReader {
	
	private $action;
	private $dataStore;
	
	public function __construct($action, $elementId = NULL) {
		
		parent::__construct($elementId);
		
		$this->action = $action;
	}
	
	public function setDataStore(DataStore $dataStore) {
		
		$this->dataStore = $datastore;
	}
	
	protected function renderOpeningMarkup() {
	
		echo '<form action="', $this->action, '" method="post" ', $this->formatAttributes(), ' >';
	}
	
	protected function renderClosingMarkup() {
		echo '</form>';
	}
}
?>